package com.xh.bussiness.teachbook.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xh.bussiness.teachbook.bean.dto.WrongQuestionsDto;
import com.xh.bussiness.teachbook.bean.request.WrongQuestionsRequest;
import com.xh.bussiness.teachbook.model.WrongQuestions;
import com.xh.bussiness.tiku.bean.dto.KnowledgeDto;
import com.xh.core.bean.XhPage;

/**
 * <p>
 * 错题本 Mapper 接口
 * </p>
 *
 * @author JQM
 * @since 2019-08-27
 */
public interface WrongQuestionsMapper extends BaseMapper<WrongQuestions> {

	List<Map<String, Object>> queryCountBySubject(@Param("stuId") String stuId);

	List<WrongQuestionsDto> queryByPage(@Param("page") XhPage<WrongQuestionsDto> page, @Param("bean") WrongQuestionsRequest bean);
	
	Long queryCount(WrongQuestionsRequest bean);

	List<KnowledgeDto> queryCountKnowledge(@Param("stuId") String stuId);

}
